package com.pbc.gmp.service.impl;

import com.pbc.gmp.model.OrgTypeRuleDto;
import com.pbc.gmp.model.basemodel.OrgType;
import com.pbc.gmp.dao.OrgTypeMapper;
import com.pbc.gmp.service.IOrgTypeService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.aspectj.lang.annotation.After;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *   服务实现类
 * </p>
 *
 * @author kjk
 * @since 2017-04-17
 */
@Service
public class OrgTypeServiceImpl extends ServiceImpl<OrgTypeMapper, OrgType> implements IOrgTypeService {

    @Resource(name="orgTypeDao")
    private OrgTypeMapper orgTypeMapper;
    @Override
    public List<OrgTypeRuleDto> selectOrgTypeRulelistBypid(Long id) {
        return orgTypeMapper.selectOrgTypeRuleByPid(id);
    }
}
